﻿using NLog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SD.Controllers
{
    public class HomeController : Controller
    {
        Logger logger = LogManager.GetCurrentClassLogger();

        private SD.EF.SdContext db = new EF.SdContext();

        public ActionResult Index()
        {
            logger.Debug("test");
            var films = db.Films.Where(x => x.IsFirstSite).ToList();
            return View(films);
        }


        public ActionResult Press()
        {
            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult AGB()
        {
            return View();
        }

        public ActionResult Privacy()
        {
            return View();
        }
        public ActionResult Help()
        {
            return View();
        }
        public ActionResult Impressum()
        {
            return View();
        }
        public ActionResult Contact()
        {
            return View();
        }
        public ActionResult Protection()
        {
            return View();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                db.Dispose();
            }
            base.Dispose(disposing);
        }
    }
}